package in.muton.panels.paginator.components.listitems;

import in.muton.edushare.pages.common.EdusharePanel;
import in.muton.edushare.pages.univ.UnivPage;
import in.muton.edushare.url.EntityPageParams;

import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.model.IModel;

import com.edushare.common.vo.Universities;

public class UnivListItem extends EdusharePanel {
	public UnivListItem(String id, IModel<Universities> model){
		super(id, model);
		Link<Void> l;
		PageParameters p = EntityPageParams.getParams(model);
		l = new BookmarkablePageLink<Void>("nameLink", UnivPage.class, p);
		l.add(new Label("name", model.getObject().getUniversityName()));
		add(l);
	}
	
	private static final long serialVersionUID = -4979300242401232063L;
}
